// 统一管理会员中心模块ts类型
export interface ResponseData {
    code: number,
    message: string,
    ok: boolean
}
// 提交订单接口返回的数据的ts类型
export interface SubmitOrderResponseData extends ResponseData {
    data: number
}

// 订单详情数据的ts类型
export interface OrderInfo {
    "id": number,
    "createTime": string,
    "updateTime": string,
    "isDeleted": number,
    "param": {
        "orderStatusString": string
    },
    "userId": number,
    "outTradeNo": string,
    "hoscode": string,
    "hosname": string,
    "depcode": string,
    "depname": string,
    "scheduleId": string,
    "title": string,
    "reserveDate": string,
    "reserveTime": number,
    "patientId": number,
    "patientName": string,
    "patientPhone": string,
    "hosRecordId": string,
    "number": number,
    "fetchTime": string,
    "fetchAddress": string,
    "c": number,
    "quitTime": string,
    "orderStatus": number
}
// 获取订单详情数据接口返回数据的ts类型
export interface OrderInfoResponseData extends ResponseData {
    data: OrderInfo
}

// 二维码的数据类型
export interface qrcodeInfo {
    "codeUrl": string,
    "orderId": number,
    "totalFee": number,
    "resultCode": string
}
// 获取二维码接口返回数据的ts类型
export interface qrcodeInfoResponseData extends ResponseData {
    data: qrcodeInfo
}

// 获取支付状态接口返回数据的ts类型
export interface payResultResponseData extends ResponseData {
    data: boolean
}

//代表一个用户信息的数据类型
export interface UserInfo {
    "id": number,
    "createTime": string,
    "updateTime": string,
    "isDeleted": number,
    "param": {},
    "openid": null,
    "nickName": null,
    "phone": string,
    "name": string,
    "certificatesType": string,
    "certificatesNo": string,
    "certificatesUrl": null,
    "authStatus": number,
    "status": number
}
//获取用户信息接口返回的数据的ts类型
export interface UseringoResponseData extends ResponseData {
    data: UserInfo
}

// 证件类型的数据类型
export interface CertificatesType {
    "id": number,
    "createTime": string,
    "updateTime": string,
    "isDeleted": number,
    "param": {},
    "parentId": number,
    "name": string,
    "value": string,
    "dictCode": string,
    "hasChildren": boolean
}
// 证件数组的类型
export type CertificatesTypeArr = CertificatesType[]
// 获取证件类型接口返回数据的ts类型
export interface CertificatesTypeResponseData extends ResponseData {
    data: CertificatesTypeArr
}

// 会员认证要携带的参数的ts类型
export interface userAuahData {
    "certificatesNo": string,
    "certificatesType": string,
    "certificatesUrl": string,
    "name": string
}

// 全部订单数组的ts类型
export type Records = OrderInfo[];
// 获取全部订单数据接口返回数据的ts类型
export interface allOrderInfoResponseData extends ResponseData {
    data: {
        "records": Records,
        "total": number,
        "size": number,
        "current": number,
        "orders": [],
        "hitCount": boolean,
        "searchCount": boolean,
        "pages": number
    }
}

//代表就诊人ts类型
export interface User {
    "id": number,
    "createTime": string,
    "updateTime": string,
    "isDeleted": number,
    "param": {
        "certificatesTypeString": string,
        "contactsCertificatesTypeString": string,
        "cityString": null,
        "fullAddress": string,
        "districtString": null,
        "provinceString": null
    },
    "userId": number,
    "name": string,
    "certificatesType": string,
    "certificatesNo": string,
    "sex": number,
    "birthdate": string,
    "phone": string,
    "isMarry": number,
    "provinceCode": null,
    "cityCode": null,
    "districtCode": null,
    "address": string,
    "contactsName": string,
    "contactsCertificatesType": string,
    "contactsCertificatesNo": string,
    "contactsPhone": string,
    "isInsure": number,
    "cardNo": null,
    "status": string
}
// 全部就诊人数组的ts类型
export type AllUserArr = User[];
// 获取全部就诊人接口返回数据的ts类型
export interface allUserResponseData extends ResponseData {
    data: AllUserArr
}

// 一个订单的状态的ts类型
export interface OrderState {
    "comment": string,
    "status": number
}
// 订单状态数组的ts类型
export type OrderStateArr = OrderState[];
// 获取全部订单状态的ts类型
export interface OrderStateResponseData extends ResponseData {
    data: OrderStateArr
}

// 一个城市数据的ts类型
export interface CityData {
    "id": number,
    "createTime": string,
    "updateTime": string,
    "isDeleted": number,
    "param": {},
    "parentId": number,
    "name": string,
    "value": string,
    "dictCode": null,
    "hasChildren": boolean
}
// 城市数组的类型
export type CityArr = CityData[];
// 获取城市数据接口返回数据的ts类型
export interface CityResponseData extends ResponseData {
    data: CityArr
}

// 添加|修改就诊人信息所需携带的参数的ts类型
export interface AddOrUpdateUserData {
    id?:number,
    name: string,
    certificatesType: string,
    certificatesNo: string,
    sex: number,
    birthdate: string,
    phone: string,
    isMarry: number,
    isInsure:number,
    addressSelected: [],
    address:string,
    contactsName:string,
    contactsCertificatesType:string,
    contactsCertificatesNo:string,
    contactsPhone:string
}